package exercise8;

import java.io.File;
import java.util.Scanner;

public class Exercise12_26 {
    public static void main(String []args){
        Scanner input=new Scanner(System.in);
        System.out.println("请输入目录的名称：");

        String filename=input.nextLine();

        File file=new File(filename);

        if (!file.exists()){
            file.mkdir();
        }
        else {
            System.out.println("目录已存在");
        }
    }
}
